// vue.config.js
module.exports = {
    devServer: {
        proxy: {
          '/ip': {
            target: 'http://ip.taobao.com/service/',
            //ws: true,
            changeOrigin: true,
            pathRewrite: {//重写路径
                "^/ip": '/'
            }
          },
        }
      }
  }